package com.example.demo.concurrent;

import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.commons.lang3.StringUtils;

import java.util.HashMap;
import java.util.List;
import java.util.Set;
import java.util.Spliterator;
import java.util.stream.Collectors;

/**
 * @description:
 *
 * @author: py
 *
 * @create: 2020-07-30 22:37
 **/
public class Stringutil {
    public static void main(String[] args) {
        String price = "663012,\n" +
                "689436,\n" +
                "689460,\n" +
                "703445,\n" +
                "701538,\n" +
                "683001,\n" +
                "683166,\n" +
                "703845,\n" +
                "683002,\n" +
                "687779,\n" +
                "702351,\n" +
                "662992,\n" +
                "704029,\n" +
                "663041,\n" +
                "703452,\n" +
                "540053,\n" +
                "704270,\n" +
                "703767,\n" +
                "703825,\n" +
                "701643,\n" +
                "640242,\n" +
                "688301,\n" +
                "65927,\n" +
                "703451,\n" +
                "703734,\n" +
                "679425,\n" +
                "704132,\n" +
                "704265,\n" +
                "680657,\n" +
                "704124,\n" +
                "703843,\n" +
                "692196,\n" +
                "701773,\n" +
                "701187,\n" +
                "642849,\n" +
                "701252,\n" +
                "700932,\n" +
                "42713,\n" +
                "684811,\n" +
                "683734,\n" +
                "259335,\n" +
                "683131,\n" +
                "704264,\n" +
                "704022,\n" +
                "475601,\n" +
                "703955,\n" +
                "683019,\n" +
                "652536,\n" +
                "702027,\n" +
                "691502\n";

        String allcpq="590077,590080,590083,590089,590105,590109,590111,590124,590130,590132,590135,590140,590145,590158,590161,590174,590179,590193,590206,590209,590213,590215,590216,590219,590225,590230,590241,590249,590259,590262,590270,590272,590275,621124,625848,628900,640242,642727,642849,652536,662503,662507,662522,662949,662952,662957,662958,662962,662964,662982,662987,662992,662993,662996,662998,662999,663002,663004,663012,663017,663023,663026,663027,663030,663041,663046,663057,663058,663073,663087,663089,663105,663106,663111,663117,663124,663125,663507,664226,664634,667278,670799,670800,678800,678853,679401,679403,679406,679407,679410,679411,679415,679422,679425,679434,679440,679442,679447,679455,679459,679460,679465,679467,679471,679473,679475,679480,679485,679496,679497,679502,680657,680969,683001,683002,683019,683020,683131,683166,683625,683626,683633,683636,683645,683650,683651,683659,683664,683677,683678,683696,683705,683717,683734,683736,683739,684811,684845,685476,687779,688301,688901,689436,689460,689519,691502,692196,700932,701187,701252,701425,701483,701538,701575,701643,701773,702027,702191,702351,703445,703451,703452,703467,703489,703502,703509,703734,703767,703769,703825,703843,703845,703955,704022,704029,704124,704132,704264,704265,704270,259335,42713,475601,490819,519454,540053,589977,589979,589982,589983,589984,589986,589990,589995,589996,589997,589999,590010,590012,590027,590043,590048,590051,590052,590057,590062,590063,65927";
        //System.out.println(Splitter.on(",").splitToList(str1).stream().map(x -> "\'" + x + "\'").collect(Collectors.toList()));

        Set<String> allcqp = Splitter.on(",").splitToList(allcpq).stream().map(x -> "\"" + x + "\"").collect(Collectors.toSet());

        String huidu="590062,590063,663124,663125,590057,589995,589977,589979,589982,589983,589984,589986,589990,589996,589997,589999,590010,590012,590027,590043,590048,590051,590052,590077,590080,590083,590089,590105,590109,590111,590124,590130,590132," +
                "590135,590140,590145,590157,590158,590161,590174,590179,590193,590206,590209,590213,590215,590216,590219,590225,590230,590241,590249,590259,590262,590270,590272,590275,662503,662507,662522," +
                "662949,662952,662957,662958,662962,662964,662982,662987,662993,662996,662998,662999,663002,663017,663023,663026,663027,663030,663046,663057,663058,663073,663087,663089,663105,663106,663111," +
                "663117,679401,679403,679406,679407,679410,679411,679415,679422,679434,679440,679442,679447,679455,679459,679460,679465,679467,679471,679473,679475,679480,679485,679496,679497,679502,683625," +
                "683626,683633,683636,683645,683650,683651,683659,683664,683677,683696,683705,683717,683736,683739,670799,663507,670800,663004,703467,703502,703489,703509,701425,701483,685476,664226,684845,678800,680969,689519,664634";

        Set<String> huisuset = Splitter.on(",").splitToList(huidu).stream().map(x -> "\"" + x + "\"").collect(Collectors.toSet());

        System.out.println(allcqp.stream().filter(x -> !huisuset.contains(x)).collect(Collectors.toSet()));


    }
}
